<template>
  <div>
    <el-button @click="toForm">form表单上传</el-button>
    <el-button>form表单上传</el-button>
    <el-button @click="toInput">input上传</el-button>
    <el-button @click="toInput">大文件上传</el-button>
  </div>
</template>

<script setup lang="ts">
import { onMounted } from "vue";
import { useRouter } from "vue-router"

const router = useRouter()
console.log(router)

onMounted(() => {});
/**
 * Form表单上传
 */
const toForm = () => {
  console.log("toForm");
};
/**
 * input上传文件
 */
const toInput = () =>{
    router.push("/inputUpload")
}
</script>
<style lang='scss' scoped></style>